

package cn.shengchao.examstar.distribute.convert;

import cn.hutool.core.bean.BeanUtil;
import cn.shengchao.examstar.rpc.distribute.enums.DistributeDataStatusEnum;
import cn.shengchao.examstar.distribute.infrastrure.po.DistributeUserInvite;
import cn.shengchao.examstar.rpc.distribute.dto.UserInviteDto;

/**
 * @program: examstarapi
 * @description: 受邀访问的实体转换
 * @author: Xiong weiqiang
 * @create: 2025-03-25 15:24
 */
public class DistributeUserInviteConvertor {
    public static DistributeUserInvite convertNewEntityFromDto(UserInviteDto userInviteDto) {
        DistributeUserInvite distributeUserInvite = new DistributeUserInvite();
        BeanUtil.copyProperties(userInviteDto, distributeUserInvite);
        distributeUserInvite.setDataStatus(DistributeDataStatusEnum.STATUS_CURT.getStatus());
        return distributeUserInvite;
    }
}